package com.imooc.bilibili.mapper.video;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.imooc.bilibili.domain.video.Video;
import com.imooc.bilibili.domain.video.VideoOperation;
import com.imooc.bilibili.domain.video.VideoView;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 视频投稿记录表 Mapper 接口
 * </p>
 *
 * @author gcq
 * @since 2022-06-04
 */
public interface VideoMapper extends BaseMapper<Video> {

    /**
     * 查询视频观看记录
     *
     * @param params
     * @return
     */
    VideoView getVideoView(@Param("params") Map<String, Object> params);

    /**
     * 获取用户偏好
     *
     * @return
     */
    List<VideoOperation> getAllUserPreference();
}
